package cn.springboot.erp.service;

import cn.springboot.erp.commons.QueryParams;
import cn.springboot.erp.entity.User;
import cn.springboot.erp.form.LoginForm;
import cn.springboot.erp.commons.ResponseResult;
import cn.springboot.erp.form.UserForm;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
* @author asus
* @description 针对表【user】的数据库操作Service
* @createDate 2024-04-29 19:10:54
*/
public interface UserService extends IService<User> {

    ResponseResult login(LoginForm loginForm, HttpServletRequest request);

    ResponseResult userPage(QueryParams<User> queryParams);

    ResponseResult selectById(Integer id);

    ResponseResult insertUser(UserForm userForm);

    ResponseResult updateUser(UserForm userForm);

    ResponseResult deleteById( List<Integer> ids);

    ResponseResult state(Integer id, Integer state);

    ResponseResult resetPassword(Integer id);

    ResponseResult menu(HttpServletRequest request);

    ResponseResult getPerson(HttpServletRequest request);

    ResponseResult logout(HttpServletRequest request);

    ResponseResult resetPwd(Map<String, String> pwdInfo, HttpServletRequest request);
}
